<!--
/**
 * moOde audio player (C) 2014 Tim Curtis
 * http://moodeaudio.org
 *
 * This Program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3, or (at your option)
 * any later version.
 *
 * This Program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * 汉化：Androidnews
 */
-->
<div id="container">
<div class="container">
	<h1 class="snd-config">Spotify Connect</h1>

	<!-- TEMPLATE -->

    <form class="form-horizontal" action="" method="post">
    	<legend>设置
			<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
		</legend>

		<div class="control-group">

			<div class="config-horiz-rule">音频格式</div>

			<label class="control-label" for="bitrate">比特率</label>
			<div class="controls">
				<select id="bitrate" class="config-select-large" name="config[bitrate]">
					$_select[bitrate]
				</select>
			</div>

			<label class="control-label" for="format">音频格式</label>
			<div class="controls">
				<select id="format" class="config-select-large" name="config[format]">
					$_select[format]
				</select>
			</div>

			<label class="control-label" for="dither">抖动</label>
			<div class="controls">
				<select id="dither" class="config-select-large" name="config[dither]">
					$_select[dither]
				</select>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-dither" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-dither" class="config-help-info">
					自动设置默认对格式S16、S24、S24_3使用三角形，对所有其他格式不使用三角形。
                </span>
			</div>


			<div class="config-horiz-rule">音量控制</div>

			<label class="control-label" for="volume-curve">音量曲线</label>
			<div class="controls">
				<select id="volume-curve" class="config-select-large" name="config[volume_curve]">
					$_select[volume_curve]
				</select>
			</div>

			<label class="control-label" for="volume-range">音量范围</label>
			<div class="controls">
				<input class="config-input-large" type="number" min="0" max="100" id="volume-range" name="config[volume_range]" value="$_select[volume_range]" required>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-volume-range" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-volume-range" class="config-help-info">
					音量控制的范围，以分贝为单位，从0-100。默认值为60。此设置用于调整音量曲线的陡度，并影响音量滑块的可用范围。
                </span>
			</div>

			<label class="control-label" for="initial-volume">初始音量</label>
			<div class="controls">
				<input class="config-input-large" type="number" min="-1" max="100" id="initial-volume" name="config[initial_volume]" value="$_select[initial_volume]" required>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-initial-volume" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-initial-volume" class="config-help-info">
					0-100之间的初始音量百分比。设置为-1以使用缓存的音量，或者如果不存在，则默认为50。
                </span>
			</div>

			<div class="config-horiz-rule">音量标准化</div>

			<label class="control-label" for="volume-normalization">正常化音量</label>
			<div class="controls">
				<select id="volume-normalization" class="config-select-large" name="config[volume_normalization]">
					$_select[volume_normalization]
				</select>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-volume-normalization" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-volume-normalization" class="config-help-info">
					调整播放的所有歌曲的音量，使它们听起来音量相等。
				</span>
			</div>

			<label class="control-label" for="normalization-method">方法</label>
			<div class="controls">
				<select id="normalization-method" class="config-select-large" name="config[normalization_method]">
					$_select[normalization_method]
				</select>
			</div>

			<label class="control-label" for="normalization-gain-type">增益类型</label>
			<div class="controls">
				<select id="normalization-gain-type" class="config-select-large" name="config[normalization_gain_type]">
					$_select[normalization_gain_type]
				</select>
			</div>

			<label class="control-label" for="normalization-pregain">预增益</label>
			<div class="controls">
				<input class="config-input-large" type="number" min="-10" max="10" id="normalization-pregain" name="config[normalization_pregain]" value="$_select[normalization_pregain]" required>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-normalization-pregain" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-normalization-pregain" class="config-help-info">
					音量从-10分贝增加到10分贝。默认值为0 dB。
                </span>
			</div>

			<label class="control-label" for="normalization-threshold">阈值</label>
			<div class="controls">
				<input class="config-input-large" type="number" step=".1" id="normalization-threshold" name="config[normalization_threshold]" value="$_select[normalization_threshold]" required>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-normalization-threshold" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-normalization-threshold" class="config-help-info">
					防止削波的dBFS阈值。默认值为-2.0 dBFS。
                </span>
			</div>

			<label class="control-label" for="normalization-attack">动态限幅器</label>
			<div class="controls">
				<input class="config-input-large" type="number" min="1" id="normalization-attack" name="config[normalization_attack]" value="$_select[normalization_attack]" required>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-normalization-attack" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-normalization-attack" class="config-help-info">
					动态限幅器降低增益的起始时间(毫秒)。默认值为5 ms。
                </span>
			</div>

			<label class="control-label" for="normalization-release">释放</label>
			<div class="controls">
				<input class="config-input-large" type="number" min="1" id="normalization-release" name="config[normalization_release]" value="$_select[normalization_release]" required>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-normalization-release" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-normalization-release" class="config-help-info">
					动态限幅器恢复增益的释放或衰减时间(毫秒)。默认值为100毫秒。
                </span>
			</div>

			<label class="control-label" for="normalization-knee">拐点</label>
			<div class="controls">
				<input class="config-input-large" type="number" min=".1" step=".1" id="normalization-knee" name="config[normalization_knee]" value="$_select[normalization_knee]" required>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-normalization-knee" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-normalization-knee" class="config-help-info">
					动态限制器的拐点陡度。默认值为1.0。
                </span>
			</div>

			<div class="config-horiz-rule">其他选项</div>

			<label class="control-label" for="autoplay">自动播放</label>
			<div class="controls">
				<select id="autoplay" class="config-select-large" name="config[autoplay]">
					$_select[autoplay]
				</select>
				<a aria-label="Help" class="config-info-toggle" data-cmd="info-autoplay" href="#notarget"><i class="fas fa-info-circle"></i></a>
				<span id="info-autoplay" class="config-help-info">
					播放列表结束时自动播放相似的歌曲。
				</span>
			</div>
		</div>
	</form>
</div>
</div>
